package com.ccl.iot.dvr.utils;


import com.ccl.iot.R;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Consts {

    //-----------------Message-----------------
    public static final int SHOW_PROGRESS = 2;
    public static final int HIDE_PROGRESS = 3;
    public static final int NOTIFY_DATASET_CHANGED = 4;

    public static final int REFRESH_DEVICE_UI = 5;


    public static final String DEVICE_ID = "deviceID";

    public static final String KEY = "ccliot";

    public static final String NAME = "name";
    public static final String NUMBER = "number";
    public static final String PIC_PATN = "picPath";
    public static final String WIDGET_ID = "widget_id";

    public static final int IOTDIMMER = 1;
    public static final int IOTSWITCH = 2;
    public static final int IOTDOOR = 3;


    public static final String TAG = "YSY";
    public static final String INDEXKEY = "IndexKey";
    public static final String YSUSER = "ysUser";
    public static final String DEVICELIST_NAME = "deviceListName";
    public static final String DEFAULT_DEVICEINFO = "deviceInfo";
    public static final int DEFAULT_CAMERANO = 1000;

    public static final String TITLE_NAME = "titleName";
    public static final String SETTING_BATCH_TITLE_NAME = "setting_batch_title_name";
    public static final String SETTING_DEVICE_TITLE_NAME = "setting_device_title_name";
    public static final String IS_DIMMER = "isdimmer";
    public static final String HIDEABLE = "hideable";
    public static final String RESTOREABLE = "restoreable";
    public static  String BATCH_NAME = "batch_name";
    public static final String IS_REMOVE = "isRemove";

    public static final String AIR = "air";
    public static final String SUB_BLIR = "sub_blir";
    public static final String RGB_LIGHT = "rgb_light";
    public static final String BATCH = "batch";
    public static final String ARM = "SecurityArm";

    public static final String DEV_UDID = "dev_udid";

    public static final String ORIENTATION_LOCK = "isOrientationLock";

    public static final String BATCH_SPLIT = "\t";
    public static final String BATCH_SPLIT_TEMP = "__";


    public static final int REQUESTCODE_CONTACTS = 1001;

    public static final long ONEDAY_MILLISECONDS = 86400000;
    public static final long ONEMINUTE_MILLISECONDS = 60000;

    public static final String IP = "ip";
    public static final String PORT = "port";
    public static final String USER = "user";
    public static final String PWD = "pwd";

    public static final String TOKEN = "push_token";


    //内网地址
//	  public static String mDefaultIP = "192.168.1.39";
//    public static int mDefaultPort = 8000;
//    public static String mDefaultUser = "admin";
//	  public static String mDefaultPwd = "12345";

    //TODO:正式发布时要删除
     //外网地址
//    public static String mDefaultIP = "183.63.215.55";
//    public static int mDefaultPort = 8022;
//    public static String mDefaultUser = "admin";
//    public static String mDefaultPwd = "12345";

    public static String mDefaultIP = "183.63.215.55";
    public static int mDefaultPort = 7022;
    public static String mDefaultUser = "cclrd";
    public static String mDefaultPwd = "ccliot";

    //单个通道的地址
//	public static String mDefaultIP = "192.168.1.30";
//  public static int mDefaultPort = 8000;
//  public static String mDefaultUser = "admin";
//	public static String mDefaultPwd = "33388333";

    public static String mResetIP = "192.168.100.100";

    public static String mInitIP = "192.168.0.0";

    public static int mResetChannel = -1;

    public static int mChannel;

    public static String[] mMultiChannel = {"1", "2", "3", "4", "5", "6", "7"};

    /**
     * 频道名字数组
     */
    public static String[] mChannelItems = mMultiChannel;

    /**
     * 频道个数
     */
    public static int mChannelCount;

    public static boolean isWifi;


    public static final List<Integer> BATCH_IMG_IDS = new ArrayList<Integer>(Arrays.asList(R.drawable.icon_batch_0,
            R.drawable.icon_batch_1,
            R.drawable.icon_batch_2,
            R.drawable.icon_batch_3,
            R.drawable.icon_batch_4,
            R.drawable.icon_batch_5,
            R.drawable.icon_batch_6));

    public static final List<Integer> INTENTION_BATCH_IMG_IDS = new ArrayList<Integer>(Arrays.asList(R.drawable.icon_intention_batch_0,
            R.drawable.icon_intention_batch_1,
            R.drawable.icon_intention_batch_2,
            R.drawable.icon_intention_batch_3));

    public static final List<Integer> SWITCH_IMG_IDS = new ArrayList<Integer>(Arrays.asList(
            R.drawable.icon_breathing_on, R.drawable.icon_downlight_on,
            R.drawable.icon_chandelier_on, R.drawable.icon_platfond_on,

            R.drawable.icon_sofa_lamp_on, R.drawable.icon_spot_a_on,
            R.drawable.icon_back_light_on, R.drawable.icon_night_on,

            R.drawable.icon_spot_b_on, R.drawable.icon_strip_on,
            R.drawable.icon_table_on,R.drawable.icon_ventilator_on));

    public static final List<Integer> DOOR_IMG_IDS = new ArrayList<Integer>(Arrays.asList(R.drawable.icon_curtain_b_stop,
            R.drawable.icon_curtain_c_stop, R.drawable.icon_curtain_d_stop, R.drawable.icon_curtain_a_stop));

    public static final List<Integer> ALL_STYLE_IMG_IDS = new ArrayList<Integer>(Arrays.asList(R.drawable.icon_all_style_small));

    public static final List<Integer> ALL_STYLE_BIGIMG_IDS = new ArrayList<Integer>(Arrays.asList(R.drawable.icon_all_style_big));

    public static final List<Integer> SECURITY_IMG_IDS = new ArrayList<Integer>(Arrays.asList(R.drawable.icon_security_c_open,
            R.drawable.icon_security_open, R.drawable.icon_security_b_open));



}
